<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
	<head>
		<style type="text/css">
		a{
			text-decoration:none;
		}
		button{
			width: 90px;
			height: 25px;
		}
		#div_main{
			margin: 20px;
			margin-left: 80px;
			width: 90%;
			height: 22px;
		}
		.div_info{
			width: 90%;
			margin-bottom:8px;
			height: 22px;
		}
		.div_info_content{
			margin-top:6px;
			margin-bottom:6px;
			margin-left:80px;
			padding-top:2px;
			padding-left:4px;
			width:520px;
			height: 60px;
			border: 1px solid black;
		}
		.div_info_date{
			margin-top:6px;
			padding-left:4px;
			width:600px;
			padding-top:2px;
			height: 22px;
			margin-left: -1px;
		}
		.div_info_receiveUser{
			width:600px;
			margin-top:6px;
			padding-left:4px;
			padding-top:2px;
			height: 22px;
			margin-left: -1px;
		}
		#btn_fanye{
			position:absolute;
			top: 250px;
			left: 390px;
			width:300px;
			height:30px;
			
		}
		#fanhui_div{
			position:absolute;
			top: 300px;
			left: 300px;
			width:70%;
			height:30px;
		
		}
		</style>
		<script type="text/javascript" src="../js/jquery-1.4.3.min.js"></script>
		<script type="text/javascript">
			function nextinfo(comscript){
				window.location.href="complaint_todetailInfo.action?comscript="+(comscript+1);
			}
			function beforeinfo(comscript){
				window.location.href="complaint_todetailInfo.action?comscript="+(comscript-1);
			}
			function returntolist(){
				window.parent.location.href="complaint_precomplaint.action";
			}
			function del(){
				if(window.confirm('是否确认删除？')){
					window.parent.location.href="complaint_del.action";
				}
			}
			
			
		</script>
		<script type="text/javascript">
		
		</script>
	</head>
	<body>
		<div style="margin-left: 130px;border: 0px;">
		<div id="fanhui_div">
			<div style="float: left; width: 25%;"><input type="button" onclick="returntolist()" value="返回发送消息列表"/></div>
			<div style="float: left; width: 20%;"><input type="button" onclick="javascript:history.back(-1);" value="返回"/></div>
			<div  id="del" style="float: left; width: 25%;"><input type="button" onclick="del()" value="删除"/></div>		
		</div>
		<div id="div_main">
			<div class="div_info">
				投诉内容 :	<br/>
				<div class="div_info_content">
					${currcomplaint.content}
				</div>
				<div class="div_info_date">
					发送日期 :${currcomplaint.date}
				</div>
			</div>
				
		</div>
			<c:choose>
				<c:when test="${comsize eq 1}">
					<div id="btn_fanye">
					<button onclick="beforeinfo(${comscript})" disabled="disabled">上一条</button>
					<button style="margin-left: 20px;" onclick="nextinfo(${comscript})" disabled="disabled">下一条</button>
					</div>
				</c:when>
				<c:when test="${comscript eq 1}">
					<div id="btn_fanye">
						<button onclick="beforeinfo(${comscript})" disabled="disabled">上一条</button>
						<button style="margin-left: 20px;" onclick="nextinfo(${comscript})">下一条</button>
					</div>
				</c:when>
				<c:when test="${comscript lt comsize}">
					<div id="btn_fanye">
						<button onclick="beforeinfo(${comscript})">上一条</button>
						<button style="margin-left: 20px;" onclick="nextinfo(${comscript})">下一条</button>
					</div>
				</c:when>
				<c:otherwise>
					<div id="btn_fanye">
						<button onclick="beforeinfo(${comscript})">上一条</button>
						<button style="margin-left: 20px;" onclick="nextinfo(${comscript})" disabled="disabled">下一条</button>
					</div>
				</c:otherwise>
			</c:choose>
		</div>
	</body>
</html>


